package com.jingxi.portal.service;

import com.jingxi.common.pojo.JingXiResult;
import com.jingxi.portal.pojo.CartItem;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
@Service
public interface CartService {
    public JingXiResult addCartItem(long itemId, int num, HttpServletRequest request, HttpServletResponse response) throws IOException;
    List<CartItem>getCartItemList(HttpServletResponse response,HttpServletRequest request);
    JingXiResult deleteCartItem(long itemId,HttpServletResponse response,HttpServletRequest request);


}
